<html>
<head>
<title>非要弹出广告代码</title>
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1.3.1");
google.setOnLoadCallback(function() {



function setCookie(name,value){
var Days = 1;
var exp = new Date();
exp.setTime(exp.getTime() + Days*24*60*60*1000);
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name){
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg)) return unescape(arr[2]);
else return null;
}
function resetCookie(name,value){
var Days = 1;
var exp = new Date();
exp.setTime(exp.getTime() - Days*24*60*60*1000);
document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}

//resetCookie("popWin", "false");
//去掉上行注释饼刷新页面，清除cookies

$(function() {
	$("a").click(function() {
//		alert(getCookie("popWin"));
      if (!getCookie("popWin")){
        setCookie("popWin", "true");
		window.open("http://myess.cn/", "popWin", "toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no, width=500, height=200");
		window.focus();
        }
	});
});




});

</script>

<script>
</script>
</head>
<body>
<a href="http://taobao.com">点击链接弹出窗口</a>
<a href="http://taobao.com">点击链接弹出窗口</a>
<a href="http://taobao.com">点击链接弹出窗口</a>
<a href="http://taobao.com">点击链接弹出窗口</a>
<a href="http://taobao.com">点击链接弹出窗口</a>
<a href="http://taobao.com">点击链接弹出窗口</a>
</body>
</html>